import java.util.Scanner;

public class ScoreJudge {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        if(x>=90){
            System.out.println("成绩优秀");
        }else if (x>=80&&x<90){
            System.out.println("成绩良好");
        }else if (x>=70&&x<80){
            System.out.println("成绩中等");
        }else if (x>=60&&x<70){
            System.out.println("成绩及格");
        }else{
            System.out.println("需要补考");
        }
        in.close();
    }
}
